<?php $this->load->view('global_header'); ?>
<link rel="stylesheet" type="text/css" href="/assets/css/question.css"/>

<?php foreach ($anwsers as $a): ?>
    <div class="anwser">    
        <h5><?php echo $a->author; ?>：</h5>
        <p class="clear"><?php echo $a->content; ?></p>
        <div class="footer">
            <div class="time"><?php echo $a->created_at; ?></div>
            <div class="actions">
            <a href="/admin.php?c=anwser&m=delete&id=<?php echo $a->id; ?>">删除</a>
            <a href="/admin.php?c=anwser&m=edit&id=<?php echo $a->id; ?>"编辑</a>
            <a href="/admin.php?c=question&m=reply&id=<?php echo $a->question_id; ?>">回复问题</a>
        </div>
    </div>
</div>
<?php endforeach; ?>
            <div class="page_links">
    <?php echo $page_links; ?>
        </div>
<?php $this->load->view('global_footer'); ?>